home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3994 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. Path: colossus.holonet.net!russell
  2. From: russell@news.mdli.com (Russell Blackadar)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: class declaration
  5. Date: 27 Jan 1996 02:42:09 GMT
  6. Organization: HoloNet National Internet Access System: 510-704-1058/modem
  7. Message-ID: <4ec3e1$ctb@colossus.holonet.net>
  8. References: <4dphp6$1bp@noc2.drexel.edu> <4drakm$hnu@grid.direct.ca> <ALUN.CHAMPION.96Jan22114418@g7240065.bridge.bst.bls.com> <4e6ngs$f2d@classic.iinet.com.au>
  9. NNTP-Posting-Host: jubal.mdli.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. John A Ng (ng@mitswa.com.au) wrote:
  13. : >: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman) wrote:
  14. ...
  15.  
  16. : >: void foo::bar (int baz)
  17. : >: {
  18. : >:     // do someFoobar
  19. : >:     ++baz;
  20. : >: }
  21. ...
  22.  
  23. : There is absolutely nothing wrong with the above program -- not even
  24. : style.
  25.  
  26. I don't know if I'd go as far as to say that!  The ++baz; statement
  27. has no useful function, and it's never good style to write useless
  28. statements.  (Note: baz is a temporary, since you called by value.)
  29. --
  30. Russell Blackadar,   russell@mdli.com
  31.